Java Program to Find Largest and Smallest Number in an Array